package chapter10.exercise.test15;

public class Outer {

    private String label;

    private String readLabel() {
        System.out.println(label);
        return label;
    }

    public Outer(String label) {
        this.label = label;
    }

    class Inner {
        public void outer(String label) {
            Outer.this.label = label;
            readLabel();
        }

        private void read() {
            System.out.println("Inner read()");
        }
    }

    public Inner getInner() {
        return new Inner() {
            {
                System.out.println("实例初始化匿名内部类");
            }
        };
    }


}
